import request from "/@/utils/request"



/**
 * 获取产线列表
 * @param obj
 */
export function getAllProductionline(obj?: Object) {
    return request({
        url: '/wms/InProduction/GetAllProductionline',
        method: 'post',
        data: obj
    })
}

/**
 * 获取工序列表
 * @param obj
 */
export function getProcessList(obj?: Object) {
    return request({
        url: '/wms/InProduction/GetProcessList',
        method: 'post',
        data: obj
    })
}

/**
 * 获取工序列表
 * @param obj
 */
export function getInProductionList(obj?: Object) {
    return request({
        url: '/wms/InProduction/GetInProductionList',
        method: 'post',
        data: obj
    })
}

/**
 * 删除
 * @param obj
 */
export function deleteInProduction(obj?: Object) {
    return request({
        url: '/wms/InProduction/DeleteInProduction',
        method: 'post',
        data: obj
    })
}

/**
 * 新增 修改
 * @param obj
 */
export function createOrUpdateInProduction(obj?: Object) {
    return request({
        url: '/wms/InProduction/CreateOrUpdateInProduction',
        method: 'post',
        data: obj
    })
}

/**
 * 获取物料
 * @param obj
 */
export function getMaterialByNameOrCode(obj?: Object) {
    return request({
        url: '/wms/InProduction/GetMaterialByNameOrCode',
        method: 'post',
        data: obj
    })
}